﻿<UserControl x:Class="Lights.Controls.HistogramViewer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d"
             Name="histogramViewer"
             d:DesignHeight="300" d:DesignWidth="300">
    <Border Margin="4" BorderBrush="Black" Background="White">
        <Grid>
            <Polygon Points="{Binding ElementName=histogramViewer,Path=Luminance}" Stretch="Fill" Fill="Black" Opacity="0.8"/>
            <Polygon Points="{Binding ElementName=histogramViewer,Path=Red}" Stretch="Fill" Fill="Red" Opacity="0.8"/>
            <Polygon Points="{Binding ElementName=histogramViewer,Path=Blue}" Stretch="Fill" Fill="Blue" Opacity="0.8"/>
            <Polygon Points="{Binding ElementName=histogramViewer,Path=Green}" Stretch="Fill" Fill="Green" Opacity="0.8"/>
        </Grid>
    </Border>
</UserControl>
